www.gusucode.com > 云网互动影视系统(12套模版和资源联盟) 6.2 > 云网互动影视系统(12套模版和资源联盟) 6.2.4/免费版/Admin/Dialog/UpFileForm.asp

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<LINK href="../css/css.css" type=text/css rel=stylesheet>
<title><%= Request.QueryString("PageTitle") %></title>
<script type="text/javascript">
<!--
var bOnLoad = true;
function setFileFileds(num){
	num = parseInt(num);
	if(bOnLoad||confirm("修改附件数量将刷新所有文件域,确定继续!"))
	{
		for(var i=0,str="";i<num;i++){
			str+="<input name=\"strFile"+i+"\" type=\"file\" id=\"strFile"+i+"\"><br />";
		}
		document.getElementById("objFiles").innerHTML=str;
		bOnLoad = false;
	}
}
//-->
</script>
<BODY leftMargin=0 topMargin=0 bgcolor="#E0EEF4">
<table class=table cellspacing=1 cellpadding=3 width="98%" align=center border=0>
  <tbody>
    <tr>
      <td colspan="2" class=xingmu>文件上传</td>
    </tr>
	<form action="upload.asp?Path=<%=Request.QueryString("Path")%><%IF Request.QueryString("Path")<>"/" Then Response.Write"/"%>" enctype="multipart/form-data" name="form1" method="post">
    <tr>
      <td width="24%" align="right" class="hback">选择上传数量:</td>
      <td width="76%" class="hback"><select name="select" onChange="setFileFileds(this.value)">
        <option value="1" selected="selected">1</option>
        <option value="2">2</option>
        <option value="3">3</option>
        <option value="4">4</option>
        <option value="5">5</option>
        <option value="6">6</option>
        <option value="7">7</option>
        <option value="8">8</option>
        <option value="9">9</option>
      </select></td>
    </tr>
    <tr>
      <td align="right" class="hback">选择文件:</td>
      <td class="hback" id="objFiles">&nbsp;</td>
    </tr>
    <tr align="center">
      <td colspan="2" class="hback"><input type="submit" name="Submit" value="上 传" /></td>
    </tr>
	</form>
  </tbody>
</table>
<script type="text/JavaScript">setFileFileds(document.forms[0].select.value);</script>
</body>
</html>